package text;

public class Car {

	 String name;  
	  String is;  
	  public static void main(String[] args) {  
	 Car motorcycle = new Car();  
	 motorcycle.name = "摩托车";  
	  motorcycle.is = "是两轮的交通工具";  
	 motorcycle.drive();  

	 Car hand_tractor = new Car();  
	  hand_tractor.name = "手扶拖拉机";  
	  hand_tractor.is = "是农耕工具";  
	  hand_tractor.drive();  

	Car compact_car = new Car();  
	compact_car.name = "小型汽车";  
	 compact_car.is = "是四轮的交通工具";  
	 compact_car.drive();  
	  }  
	public void drive() {  
	  System.out.println(name+is);  
	}
	 }
